package main

type LinkedList struct {
	//私有的定义
	head *node
	tail *node
	//公共的定义 包外可访问
	Len int
}

//func (l LinkedList) Add(idx int, val any) {
//	l.Add(idx, val)
//
//}
//
//// 方法接收器 receiver
//func (l *LinkedList) Add1(idx int, val any) {
//
//}

// 自引用 *node
type node struct {
	prev *node
	next *node
}

func (l *LinkedList) Add(index int, val any) {
	//TODO implement me
	panic("implement me")
}

func (l *LinkedList) Append(val any) {
	//TODO implement me
	panic("implement me")
}

func (l *LinkedList) Delete(index int) {
	//TODO implement me
	panic("implement me")
}
